home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-06-30 | 1.3 KB | 41 lines |
- /*
- * @(#)Position.java 1.8 98/04/09
- *
- * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
- *
- * This software is the confidential and proprietary information of Sun
- * Microsystems, Inc. ("Confidential Information"). You shall not
- * disclose such Confidential Information and shall use it only in
- * accordance with the terms of the license agreement you entered into
- * with Sun.
- *
- * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
- * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
- * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
- * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
- * THIS SOFTWARE OR ITS DERIVATIVES.
- *
- */
- package com.sun.java.swing.text;
-
- /**
- * Represents a location within a document. It is intended to abstract away
- * implementation details of the document and enable specification of
- * positions within the document that are capable of tracking of change as
- * the document is edited (i.e. offsets are fragile).
- *
- * @author Timothy Prinzing
- * @version 1.8 04/09/98
- */
- public interface Position {
-
- /**
- * Fetches the current offset within the document.
- *
- * @return the offset >= 0
- */
- public int getOffset();
-
- }
-